package com.bw.home.adapter

import android.widget.TextView
import com.bw.common.entity.NoticeEntityItem
import com.bw.home.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import org.w3c.dom.Text

class HomeAdapter:BaseQuickAdapter<NoticeEntityItem,BaseViewHolder>(R.layout.item_home) {
    override fun convert(holder: BaseViewHolder, item: NoticeEntityItem) {
        val title = holder.getView<TextView>(R.id.item_title)
        val content = holder.getView<TextView>(R.id.item_content)
        val time = holder.getView<TextView>(R.id.item_time)
        title.text = item.title
        content.text = item.content
        time.text = item.publishTime
    }


}